module Sprockets::Utils
def string_end_with_semicolon?(str)
str - String
Internal: Check if string has a trailing semicolon.
def string_end_with_semicolon?(str) i = str.size - 1 while i >= 0 c = str[i].ord i -= 1 next if WHITESPACE_ORDINALS[c] return c === 0x3B end true end