Register new snapshots
This commit is contained in:
parent
b25e100173
commit
52edb2ecc9
34 changed files with 8002 additions and 7220 deletions
|
@ -350,7 +350,7 @@ impl CodeMap {
|
|||
// Remove utf-8 BOM if any.
|
||||
// FIXME #12884: no efficient/safe way to remove from the start of a string
|
||||
// and reuse the allocation.
|
||||
let mut src = if src.starts_with("\ufeff") {
|
||||
let mut src = if src.starts_with("\u{feff}") {
|
||||
String::from_str(src.slice_from(3))
|
||||
} else {
|
||||
String::from_str(src.as_slice())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue