Permalink
Browse files

Reimported 1.1.1 - fixed 3 digit hex issue

  • Loading branch information...
tybenz committed Jul 31, 2012
1 parent b0fd0e4 commit 83d1576f24b5a6e8b2ea39e16497491a23dc6105
Showing with 320 additions and 138 deletions.
  1. +4 −0 add_version.php
  2. +116 −116 jqm/1.1.1/jqm.default.theme.css
  3. +181 −2 jqm/1.1.1/jqm.min.js
  4. +19 −19 jqm/1.1.1/jqm.starter.theme.css
  5. +0 −1 version.php
View
@@ -98,6 +98,10 @@ function writeFile( $filename, $string ) {
function createStarter( $default, $starter ) {
$contents = file_get_contents( $default );
+ //replace all 3 digit hex with matching 6 digit ones
+ $contents = preg_replace( "/\#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])\s/s", "#$1$1$2$2$3$3 ", $contents );
+ writeFile( $default, $contents );
+
$contents = preg_replace( "/\/\*\s*A\s*-*\*\/.*(\/\*\s*B\s*-*\*\/)/s", "$1", $contents );
$contents = preg_replace( "/\/\*\s*B\s*-*\*\/.*(\/\*\s*C\s*-*\*\/)/s", "$1", $contents );
$contents = preg_replace( "/\/\*\s*D\s*-*\*\/.*(\/\*\s*E\s*-*\*\/)/s", "$1", $contents );
Oops, something went wrong.

0 comments on commit 83d1576

Please sign in to comment.