Skip to content

Commit

Permalink
updating shell script to use better regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Divya Manian committed Jan 22, 2012
1 parent e263961 commit 4793097
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 7 deletions.
30 changes: 25 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ <h3 class="status avoid">avoid <i></i> </h3>
<h4 class="kind css">css</h4>
<h2 class='name'>

<a href="http://caniuse.com/box-reflection"><b class="namevalue">box-reflection</b></a>
<b class="namevalue">box-reflection</b>

</h2>
</header>
Expand Down Expand Up @@ -211,7 +211,7 @@ <h2 class='name'>
<article class="polyfill noie nooldmobile">
<header title="expand">
<h3 class="status use">use <i>with <b class=polyfill>polyfill</b></i> </h3>
<h4 class="kind js">js</h4>
<h4 class="kind api">api</h4>
<h2 class='name'>

<a href="http://caniuse.com/classlist"><b class="namevalue">classlist</b></a>
Expand Down Expand Up @@ -598,7 +598,7 @@ <h3 class="status use">use <i>with <b class=polyfill>polyfill</b></i> </h3>
<h4 class="kind api">api</h4>
<h2 class='name'>

<a href="http://caniuse.com/match-media"><b class="namevalue">match-media</b></a>
<b class="namevalue">match-media</b>

</h2>
</header>
Expand Down Expand Up @@ -731,7 +731,7 @@ <h3 class="status use">use <i>with <b class=polyfill>polyfill</b></i> </h3>
<h4 class="kind html">html</h4>
<h2 class='name'>

<a href="http://caniuse.com/ol-reversed"><b class="namevalue">ol-reversed</b></a>
<b class="namevalue">ol-reversed</b>

</h2>
</header>
Expand Down Expand Up @@ -884,7 +884,7 @@ <h3 class="status avoid">avoid <i></i> </h3>
<h4 class="kind css">css</h4>
<h2 class='name'>

<a href="http://caniuse.com/scoped-css"><b class="namevalue">scoped-css</b></a>
<b class="namevalue">scoped-css</b>

</h2>
</header>
Expand Down Expand Up @@ -1113,6 +1113,26 @@ <h2 class='name'>
<footer class="tags">polyfill</footer>
</article>

<article class="none">
<header title="expand">
<h3 class="status avoid">avoid <i></i> </h3>
<h4 class="kind api">api</h4>
<h2 class='name'>

<a href="http://caniuse.com/websql"><b class="namevalue">web sql</b></a>

</h2>
</header>
<div class="more">
<div class='recco'><p>Although it found initial favor as a client-side database api, it has
now been abandoned in favor of IndexDB. </p></div>
<div class='polyfills'></div>
<a class="updateurl" href=https://github.com/h5bp/html5please/blob/master/posts/websql.md>Edit info on
web sql</a>
</div>
<footer class="tags">none</footer>
</article>

<article class="gtie7 polyfill">
<header title="expand">
<h3 class="status use">use <i>with <b class=polyfill>polyfill</b></i> </h3>
Expand Down
4 changes: 2 additions & 2 deletions new_feature.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ done
featureslug=$(
echo $feature |
# Use sed to replace spaces with hyphens
sed -e "s/<//" -e "s/>//" |
sed -E -e "s/ +/-/" -e "s/[^A-Za-z0-9\-]//g" |
# BSD sed doesn't accept \L, so use tr instead for case conversion
# BSD sed doesnt accept \L, so use tr instead for case conversion
tr "[A-Z]" "[a-z]"
)

Expand Down

0 comments on commit 4793097

Please sign in to comment.