Skip to content
This repository was archived by the owner on Jan 4, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: xda/XDA-One
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: CyboLabs/XDA-One
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Oct 8, 2014

  1. Accept all protocols in url parsing

    XDA allows the use of other protocols such as ssh://
    
    Since custom ones work (as://), accept all valid characters for the protocol
    
    A note about special casing, a:// shows up as file://a://<url>
    Anthony King committed Oct 8, 2014
    Copy the full SHA
    0237287 View commit details
  2. fix style detection for posts

    HTMLSpanner does not parse styles from the span element.
    directly apply them to the font element.
    Anthony King committed Oct 8, 2014
    Copy the full SHA
    e2d635e View commit details
Showing with 5 additions and 5 deletions.
  1. +5 −5 android/src/main/assets/xda.xml
10 changes: 5 additions & 5 deletions android/src/main/assets/xda.xml
Original file line number Diff line number Diff line change
@@ -144,13 +144,13 @@
<!-- Font color -->
<code name="color">
<pattern ignoreCase="true">[color=<var name="color" scope="escapeXml"/>]<var name="text" inherit="true"/>[/color]</pattern>
<template>&lt;span style=&quot;color:<var name="color"/>;&quot;&gt;<var name="text"/>&lt;/span&gt;</template>
<template>&lt;font color=&quot;<var name="color"/>;&quot;&gt;<var name="text"/>&lt;/span&gt;</template>
</code>

<!-- Font size -->
<code name="size">
<pattern ignoreCase="true">[size=<var name="size" scope="escapeXml"/>]<var name="text" inherit="true"/>[/size]</pattern>
<template>&lt;span style=&quot;font-size:<var name="size"/>;&quot;&gt;<var name="text"/>&lt;/span&gt;</template>
<template>&lt;span size=&quot;<var name="size"/>;&quot;&gt;<var name="text"/>&lt;/span&gt;</template>
</code>

<!-- Insert image -->
@@ -178,12 +178,12 @@

<!-- HTTP -->
<code name="url1" priority="2">
<pattern ignoreCase="true">[url=<var name="protocol" regex="((ht|f)tps?:|\.{1,2})?"/>/<var name="url" scope="escapeXml"/>]<var
<pattern ignoreCase="true">[url=<var name="protocol" regex="(\S?:|\.{1,2})?"/>/<var name="url" scope="escapeXml"/>]<var
name="text" scope="url"/>[/url]</pattern>
<template>&lt;a href=&quot;<var name="protocol"/>/<var name="url"/>&quot;&gt;<var name="text"/>&lt;/a&gt;</template>
</code>
<code name="url2" priority="2">
<pattern ignoreCase="true">[url]<var name="protocol" regex="((ht|f)tps?:|\.{1,2})?"/>/<var name="url" scope="escapeXml"/>[/url]</pattern>
<pattern ignoreCase="true">[url]<var name="protocol" regex="(\S?:|\.{1,2})?"/>/<var name="url" scope="escapeXml"/>[/url]</pattern>
<template>&lt;a href=&quot;<var name="protocol"/>/<var name="url"/>&quot;&gt;<var name="protocol"/>/<var
name="url"/>&lt;/a&gt;</template>
</code>
@@ -297,4 +297,4 @@
<pattern ignoreCase="true">[FONT=<var name="font" />]<var inherit="true" />[/FONT]</pattern>
<template><var /></template>
</code>
</configuration>
</configuration>