Skip to content

Commit

Permalink
Use character for #delete_prefix instead of RegEx
Browse files Browse the repository at this point in the history
  • Loading branch information
matteeyah committed Jun 5, 2020
1 parent 53efbb8 commit c995430
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 c995430

Please sign in to comment.