Module | Sprockets::Utils |
In: |
lib/sprockets/utils.rb
|
`Utils`, we didn‘t know where else to put it!
UTF8_BOM_PATTERN | = | Regexp.new("\\A\uFEFF".encode('utf-8')) | Define UTF-8 BOM pattern matcher. Avoid using a Regexp literal because it inheirts the files encoding and we want to avoid syntax errors in other interpreters. | |
UTF8_BOM_PATTERN | = | Regexp.new("\\A\\xEF\\xBB\\xBF") | Define UTF-8 and UTF-16 BOM pattern matchers. Avoid using a Regexp literal to prevent syntax errors in other interpreters. | |
UTF16_BOM_PATTERN | = | Regexp.new("\\A(\\xFE\\xFF|\\xFF\\xFE)") |