Skip to content

Commit

Permalink
Merge pull request #194 from kianmeng/fix-typos
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
lautis authored Sep 22, 2024
2 parents 81fbc31 + 383bebe commit b808f14
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/uglifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Error < StandardError; end
DEFAULTS = {
# rubocop:disable Layout/LineLength
:output => {
:ascii_only => true, # Escape non-ASCII characterss
:ascii_only => true, # Escape non-ASCII characters
:comments => :copyright, # Preserve comments (:all, :jsdoc, :copyright, :none)
:inline_script => false, # Escape occurrences of </script in strings
:quote_keys => false, # Quote keys in object literals
Expand Down
2 changes: 1 addition & 1 deletion spec/source_map_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def expect_to_have_inline_source_map(minified, original)
expect(map[0].generated.line).to eq(2)
end

it "proceses an input source map" do
it "processes an input source map" do
source = <<-JS
function hello () {
function world () {
Expand Down
4 changes: 2 additions & 2 deletions spec/uglifier_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@
it 'contains harmony error message and follows error_context_lines option' do
expect { Uglifier.compile(code, :harmony => false, :error_context_lines => 4) }
.to raise_error(Uglifier::Error, %r{
harmony\smode [^\n]+ Uglifier\.new # harmony error mesage
harmony\smode [^\n]+ Uglifier\.new # harmony error message
.+ --\n [^\n]+ //_1\n # 1 should be the first line
.+ => [^\n]+ bar \e\[\d+m \(\) # should point to () at line 3
.+ //_7\n ==\z # 7 should be the last line
Expand All @@ -761,7 +761,7 @@
it 'shows lines surrounded syntax error when harmony mode is on' do
expect { Uglifier.compile(code, :harmony => true, :error_context_lines => 2) }
.to raise_error(Uglifier::Error, %r{
Unexpect[^\n]+ ; [^\n]+expect [^\n]+ , # syntax error mesage
Unexpected[^\n]+ ; [^\n]+expect [^\n]+ , # syntax error message
.+ --\n [^\n]+ //_16\n # 16 should be the first line
.+ => [^\n]+ \} \e\[\d+m ; # should point to ; at line 18
.+ //_20\n ==\z # 20 should be the last line
Expand Down

0 comments on commit b808f14

Please sign in to comment.