Class: TailwindCss::Utils::Bump
- Inherits:
-
Thor
- Object
- Thor
- TailwindCss::Utils::Bump
- Includes:
- Thor::Actions
- Defined in:
- lib/bridgetown-plugin-tailwindcss/utils.rb
Overview
capture groups
Constant Summary collapse
- RUBY_VERSION_REGEX =
%r!(.*VERSION.?=.*)!.freeze
- NPM_VERSION_REGEX =
%r!(.*"version":.*)!.freeze
- VERSION_LINE =
Regexp.union(RUBY_VERSION_REGEX, NPM_VERSION_REGEX)
- VERSION_REGEX =
%r!(?<major>\d+)\.(?<minor>\d+)\.(?<patch>\d+)!.freeze
- GSUB_REGEX =
%r!(?<version>#{VERSION_LINE})#{VERSION_REGEX}!.freeze