Last active
December 11, 2015 04:58
-
-
Save jem-computer/4548693 to your computer and use it in GitHub Desktop.
Every so often I find myself running a server in development mode and needed to copy some compiled Stylus to work with. PITA because it's littered with (usually very helpful) Stylus debug notes. Here's a quick & dirty regex to find them in Sublime for deletion.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
^(\/\* line\s(\d+)|@media -stylus-debug)(.+)$\n |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* line 81 : ~/Sites/radsite/app/assets/stylesheets/base.css.styl */ | |
@media -stylus-debug-info{filename{font-family:file\:\/\/\/Volumes\/Macintosh HD\/Dropbox\/Sites\/Sidekick\/amazings\/app\/assets\/stylesheets\/base\.css\.styl}line{font-family:\0000381}} | |
@font-face { | |
font-family: "ProximaNovaWeb"; | |
src: url("../assets/proximanova-regular-webfont-latin.eot"); | |
src: url("../assets/proximanova-regular-webfont-latin.eot?#iefix") format("embedded-opentype"), url("../assets/proximanova-regular-webfont-latin.woff") format("woff"), url("../assets/proximanova-regular-webfont-latin.ttf") format("truetype"); | |
font-weight: normal; | |
font-style: normal; | |
} | |
/* line 81 : ~/Sites/radsite/app/assets/stylesheets/base.css.styl */ | |
@media -stylus-debug-info{filename{font-family:file\:\/\/\/Volumes\/Macintosh HD\/Dropbox\/Sites\/Sidekick\/amazings\/app\/assets\/stylesheets\/base\.css\.styl}line{font-family:\0000381}} | |
@font-face { | |
font-family: "ProximaNovaWeb"; | |
src: url("../assets/proximanova-regularitalic-webfont-latin.eot"); | |
src: url("../assets/proximanova-regularitalic-webfont-latin.eot?#iefix") format("embedded-opentype"), url("../assets/proximanova-regularitalic-webfont-latin.woff") format("woff"), url("../assets/proximanova-regularitalic-webfont-latin.ttf") format("truetype"); | |
font-weight: normal; | |
font-style: italic; | |
} | |
/* line 81 : ~/Sites/radsite/app/assets/stylesheets/base.css.styl */ | |
@media -stylus-debug-info{filename{font-family:file\:\/\/\/Volumes\/Macintosh HD\/Dropbox\/Sites\/Sidekick\/amazings\/app\/assets\/stylesheets\/base\.css\.styl}line{font-family:\0000381}} | |
@font-face { | |
font-family: "ProximaNovaWeb"; | |
src: url("../assets/proximanova-bold-webfont-latin.eot"); | |
src: url("../assets/proximanova-bold-webfont-latin.eot?#iefix") format("embedded-opentype"), url("../assets/proximanova-bold-webfont-latin.woff") format("woff"), url("../assets/proximanova-bold-webfont-latin.ttf") format("truetype"); | |
font-weight: bold; | |
font-style: normal; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment