「カッコをはずす」の版間の差分
細編集の要約なし |
細 →ソースコード |
||
| 192行目: | 192行目: | ||
// 選択範囲内の先頭と末尾が「対になるカッコ」のとき | // 選択範囲内の先頭と末尾が「対になるカッコ」のとき | ||
if ( st.length > o.length + c.length && i % 2 == 0 | if ( st.length >= o.length + c.length && i % 2 == 0 | ||
&& st.slice( 0, o.length ) == o | && st.slice( 0, o.length ) == o | ||
&& st.slice( - c.length ) == c ) { | && st.slice( - c.length ) == c ) { | ||
| 225行目: | 225行目: | ||
} | } | ||
</source> | </source> | ||
= メモ = | = メモ = | ||
スポンサーリンク