Skip to content

Commit

Permalink
Merge pull request #685 from matteeyah/master
Browse files Browse the repository at this point in the history
Use character for #delete_prefix instead of RegEx
  • Loading branch information
rafaelfranca authored Jun 5, 2020
2 parents 53efbb8 + c995430 commit 8fc492a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_source_maps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ def setup
assert_equal "sass/main.css.map", asset.logical_path
assert_equal "application/css-sourcemap+json", asset.content_type
assert_equal [
"file:///#{ fixture_path('source-maps/sass/main.scss').delete_prefix(/\A\//, '') }?type=text/scss&pipeline=source"
"file:///#{ fixture_path('source-maps/sass/main.scss').delete_prefix('/') }?type=text/scss&pipeline=source"
], normalize_uris(asset.links)

assert map = JSON.parse(asset.source)
Expand Down

0 comments on commit 8fc492a

Please sign in to comment.