mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
strip_shebang
This commit is contained in:
parent
6c3b474b32
commit
c1100c92d0
1 changed files with 1 additions and 1 deletions
|
@ -213,7 +213,7 @@ pub fn map_content_type(
|
|||
}
|
||||
|
||||
/// Remove shebangs from the start of source code strings
|
||||
pub fn strip_shebang(mut value: String) -> String {
|
||||
fn strip_shebang(mut value: String) -> String {
|
||||
if value.starts_with("#!") {
|
||||
if let Some(mid) = value.find('\n') {
|
||||
let (_, rest) = value.split_at(mid);
|
||||
|
|
Loading…
Reference in a new issue